// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import * as Icons from "@element-plus/icons-vue";
import 'element-plus/dist/index.css'
import persistedstate from 'pinia-plugin-persistedstate' //引入持久化插件


const app = createApp(App)

for (const [key, component] of Object.entries(Icons )) {
    app.component(key, component)
  }

let pinia = createPinia();
pinia.use(persistedstate);// 使用持久化插件
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
